<template>
  <div class="login">
    <div class="login_form">
      <div class="login_title">
        <p>后台管理系统</p>
      </div>
      <el-form>
        <el-form-item prop="username">
          <el-input v-model="input" placeholder="用户名"></el-input>
        </el-form-item>
        <el-form-item prop="password">
          <el-input type="password" v-model="input" show-password placeholder="密码"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" class="submit_btn">登陆</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
    name:"Login"
}
</script>

<style lang="stylus" scoped>
.login {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  background-image: url('../../assets/img/bg.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0;
}

.login_title {
  font-weight: bold;
}

.login_form {
  width: 320px;
  height: 210px;
  margin: auto;
  position: absolute;
  top: 50%;
  margin-top: -175px;
  left: 50%;
  margin-left: -185px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background-color: #fff;
  padding: 25px;
  text-align: center;
}
</style>
